import { useContext } from 'react';
import {context} from './Provider'

export default function Reset() {
  const {setCounter01, setCounter02} = useContext(context)

  console.log('reset');

  function clickHandle() {
    setCounter01(0);
    // setCounter02(1);
  }
  return (
    <div>
      <button onClick={clickHandle}>
        Reset01 02 to 0
      </button>
    </div>
  )
}